# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-dask
pkgver=2022.6.1
pkgrel=0
pkgdesc="Parallel computing with task scheduling"
url="https://dask.org/"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-cloudpickle
	py3-fsspec
	py3-numpy
	py3-packaging
	py3-pandas
	py3-partd
	py3-toolz
	py3-yaml
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-flaky
	py3-graphviz
	py3-jinja2
	py3-pytest
	py3-pytest-runner
	py3-pytest-xdist
	py3-scipy
	"
source="https://pypi.python.org/packages/source/d/dask/dask-$pkgver.tar.gz"
builddir="$srcdir/dask-$pkgver"

# secfixes:
#   2022.2.0-r0:
#     - CVE-2021-42343

build() {
	python3 setup.py build
}

check() {
	# dataframe ones fail due to deprecation warnings
	# matches_ci fails on a missing workflow yaml file
	# test_csv fails on s390x
	pytest -n ${JOBS:-2} \
		--ignore=dask/dataframe/tests/test_dataframe.py \
		--ignore=dask/dataframe/io/tests/test_csv.py \
		-k 'not test_development_guidelines_matches_ci'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0b9af0e2d835bb7e2f96b68948bdea0e5b1ad33c09494a35278c2667c0039a8a58f200c645ae049e3810b5bfd8d89e17653c735033a1af8af720be86d9c79d19  dask-2022.6.1.tar.gz
"
